home *** CD-ROM | disk | FTP | other *** search
/ Regional Industry Buying Guide: Greater Florida / 2000 Regional Industry Buying Guide - Greater Florida.iso / cs2k / clients / classic / scripts.lib / FTCONN.SCR < prev    next >
Encoding:
Text File  |  1998-09-30  |  1.5 KB  |  67 lines

  1. !
  2. !  Copyright (c) 1998
  3. !  by CompuServe Incorporated, Columbus, Ohio
  4. !
  5. !  The information in this software is subject to change without
  6. !  notice and should not be construed as a commitment by CompuServe.
  7. !
  8. !  FT-Connect:
  9. !       Connect to France Telecom
  10. !       Success:  returns %Success
  11. !       Failure:  saves error msg in %FailureMsg and returns %Failure
  12. !
  13. !+V
  14. ! "4.0.5"
  15. !-V
  16.  
  17. CompuServe_NUA = "196282595";
  18. Tries = 5;
  19. twice_tried = %FALSE;
  20. on cancel goto Return_Cancel;
  21.  
  22. show "Connecting to FT-Connect";
  23.  
  24.  
  25. Wait_FTConnect:
  26.     if Tries = 0 goto FTConnect_Failure;
  27.     Tries = Tries - 1;
  28.     if (Tries = 4) goto Send_Address; ! First time
  29.     wait
  30.         "France"        goto Send_Address,
  31.         "TRANSPAC"      goto Send_Address,
  32.         "ROMPAC"        goto Send_Address,      ! Romania prompt
  33.         "ERROR"         goto Resend_Address,
  34.         "LIB"           goto Resend_Address,
  35.         "CLR"           goto Resend_Address,
  36.         %mdm_Failure    goto FTConnect_Failure,
  37.         "COM"           goto Return_Success
  38.     until 80;
  39.  
  40.     send %CR;
  41.     goto Send_Address;
  42.     
  43. Resend_Address:
  44.     if twice_tried = %TRUE goto Cserve_NUA_Failure;
  45.     twice_tried = %TRUE;
  46.  
  47. Send_Address:
  48.     show "Sending CompuServe NUA...";
  49.     send CompuServe_NUA & %CR;
  50.     goto Wait_FTConnect;
  51.  
  52. FTConnect_Failure:
  53.     define %FailureMsg = "FT-Connect not responding";
  54.     goto Return_Failure;
  55.  
  56. Cserve_NUA_Failure:
  57.     define %FailureMsg = "FT-Connect not accepting CompuServe NUA";
  58.  
  59. Return_Failure:
  60.     exit %Failure;
  61.  
  62. Return_Cancel:
  63.     exit %Cancel;
  64.  
  65. Return_Success:
  66.     exit %Success;
  67.